package PTA3.ti1301;
import java.util.Arrays;
import java.util.Scanner;
/**
 * @author Lenovo
 */

public class Main {
    public static void main(String[] args) {
        double dd = RR.fun();
        System.out.printf("%.2f",dd);
    }
}
class RR{
    public static double fun(){
        Scanner scanner = new Scanner(System.in);
        double [] numbers= new double[5];
        for(int i=0;i<5;i++){
            numbers[i]= scanner.nextDouble();
        }
        Arrays.sort(numbers);
        return numbers[2];
    }



}